/* General Styling */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Dropdown styles */
.menu .dropdown {
    position: relative;
}

.menu .dropdown .arrow-down {
    font-size: 0.8rem;
    margin-left: 5px;
}

.menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none; /* Initially hidden */
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
    border-radius: 5px;
    min-width: 200px;
}

.menu .dropdown-menu li {
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

.menu .dropdown-menu li:last-child {
    border-bottom: none;
}

.menu .dropdown-menu li a {
    text-decoration: none;
    color: #333;
    display: block;
}

.menu .dropdown-menu li a:hover {
    background-color: #f4f4f4;
}

/* Show dropdown on hover */
.menu .dropdown:hover .dropdown-menu {
    display: block;
}

/* Hero Section */
.ict-hero {
    position: relative;
    height: 50vh;
    background: url('Advanced\ ICT\ Solutions.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.ict-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.ict-hero .hero-content {
    position: relative;
    z-index: 2;
}

.ict-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ict-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Services Overview */
.services-overview {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
    text-align: center;
}

.services-overview h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0C2C6B;
}

.services-overview p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #666;
}

.service-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.service-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    flex: 0 0 calc(33.333% - 2rem); /* 3 columns on desktop */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.service-item img {
    width: 100%;
    height: auto;
    max-height: 200px; /* Ensure consistent image sizes */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.service-item h3 {
    font-size: 1.5rem;
    color: #0C2C6B;
    margin-bottom: 0.5rem;
}

.service-item p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 4rem 2rem;
    background: #ffffff;
    text-align: center;
}

.why-choose-us h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #0C2C6B;
}

.why-choose-us ul {
    list-style-type: none;
    padding: 0;
}

.why-choose-us ul li {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Contact CTA Section */
.contact-cta {
    padding: 4rem 2rem;
    background-color: #e8f0ff;
    text-align: center;
}

.contact-cta h2 {
    font-size: 2rem;
    color: #0C2C6B;
    margin-bottom: 1rem;
}

.contact-cta p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

.contact-cta .btn-primary {
    padding: 0.75rem 1.5rem;
    background-color: #0C2C6B;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.contact-cta .btn-primary:hover {
    background-color: #09204E;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-item {
        flex: 0 0 calc(100% - 2rem); /* Full-width on mobile */
    }

    .ict-hero h1 {
        font-size: 2rem;
    }

    .ict-hero p {
        font-size: 1rem;
    }
}

/* Our Expertise Section */
.our-expertise {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
    text-align: center;
}

.our-expertise h2 {
    font-size: 2rem;
    color: #007BFF;
    margin-bottom: 1.5rem;
}

.our-expertise p {
    font-size: 1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.expertise-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.expertise-item {
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(25% - 2rem);
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.expertise-item img {
    max-width: 80px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: #007BFF;
    padding: 1rem;
}

.expertise-item h3 {
    font-size: 1.25rem;
    color: #007BFF;
    margin-bottom: 0.5rem;
}

.expertise-item p {
    font-size: 0.9rem;
    color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .expertise-grid {
        flex-direction: column;
        align-items: center;
    }

    .expertise-item {
        flex: 1 1 100%;
        max-width: none;
    }
}
